<?php

include 'init.php';

$admin = new Admin();
$admin->checkAdmin();

$modules = new ModulesAdmin();

if($_GET['act'] == 'list'){
    $data['list'] = $modules->getAllModules();
    $data['groups'] = $modules->groups;
    $tpl = new TemplateAdmin('modules-list', $data);
}

//$tpl = new TemplateAdmin('modules', $data);
$tpl->viewTemplate();
?>
